package com.atguigu.proxy.cglib;

public class Client {
    public static void main(String[] args) {
        TeacherDao target = new TeacherDao();
        TeacherDao proxyInstance = (TeacherDao) new ProxyFactory(target).getProxyInstance();
        System.out.println("proxyInstance=" + proxyInstance.getClass());
        String result = proxyInstance.teach();
        System.out.println("result=" + result);
    }
}
